TARGET=GcpServerTest GcpClientTest ThreadPool2_test WebSocketTest WebSocketServerTest WebSocketClientTest ConfigCenterTest
all: $(TARGET)

IPv6Test: IPv6Test.cpp
	g++ -o IPv6Test -g3 -Wall IPv6Test.cpp -I../LFC/Include \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11


GcpServerTest: GcpServerTest.cpp
	g++ -o GcpServerTest -g3 -Wall GcpServerTest.cpp -I../LFC/Include \
../LFC/Lib/libGcp.a \
../LFC/Lib/libHttp.a \
../LFC/Lib/libFramework.a \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11

GcpClientTest: GcpClientTest.cpp
	g++ -o GcpClientTest -g3 -Wall GcpClientTest.cpp -I../LFC/Include \
../LFC/Lib/libGcp.a \
../LFC/Lib/libHttp.a \
../LFC/Lib/libFramework.a \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11

ThreadPool2_test: ThreadPool2_test.cpp
	g++ -o ThreadPool2_test -g3 -Wall ThreadPool2_test.cpp -I../LFC/Include \
../LFC/Lib/libCommon.a \
-lpthread -lrt

WebSocketTest: WebSocketTest.cpp
	g++ -o WebSocketTest -g3 -Wall WebSocketTest.cpp -I../LFC/Include \
../LFC/Lib/libWebSocket.a \
../LFC/Lib/libHttp.a \
../LFC/Lib/libFramework.a \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11

MessageMapTest: MessageMapTest.cpp
	g++ -o MessageMapTest -g3 -Wall MessageMapTest.cpp -I../LFC/Include \
../LFC/Lib/libCommon.a -lrt -lpthread -std=c++11

WebSocketServerTest: WebSocketServerTest.cpp
	g++ -o WebSocketServerTest -g3 -Wall WebSocketServerTest.cpp -I../LFC/Include \
../LFC/Lib/libWebSocket.a \
../LFC/Lib/libjsoncpp.a \
../LFC/Lib/libHttp.a \
../LFC/Lib/libFramework.a \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11

ConfigCenterTest: ConfigCenterTest.cpp
	g++ -o ConfigCenterTest -g3 -Wall ConfigCenterTest.cpp -I../LFC/Include \
../LFC/Lib/libConfigCenter.a \
../LFC/Lib/libWebSocket.a \
../LFC/Lib/libjsoncpp.a \
../LFC/Lib/libHttp.a \
../LFC/Lib/libFramework.a \
../LFC/Lib/libCommon.a \
-lpthread -lrt -std=c++11

clean:
	rm -f ${TARGET}
